package com.zjjk.transfer.source.service;

import com.zjjk.transfer.source.entity.SourceOrder;
import com.zjjk.transfer.source.param.SourceOrderPageParam;
import io.geekidea.springbootplus.framework.common.service.BaseService;
import io.geekidea.springbootplus.framework.core.pagination.Paging;

/**
 * 订单信息 服务类
 *
 * @author xuziyang
 * @since 2021-03-26
 */
public interface SourceOrderService extends BaseService<SourceOrder> {

    /**
     * 保存
     *
     * @param sourceOrder
     * @return
     * @throws Exception
     */
    boolean saveSourceOrder(SourceOrder sourceOrder) throws Exception;

    /**
     * 修改
     *
     * @param sourceOrder
     * @return
     * @throws Exception
     */
    boolean updateSourceOrder(SourceOrder sourceOrder) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteSourceOrder(Long id) throws Exception;


    /**
     * 获取分页对象
     *
     * @param sourceOrderQueryParam
     * @return
     * @throws Exception
     */
    Paging<SourceOrder> getSourceOrderPageList(SourceOrderPageParam sourceOrderPageParam) throws Exception;

}
